import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },

    {
      path: '/User',
      name: '会员展示',
      component: () => import('../views/DLUer/UserShow.vue'),
    },

    {
      path: '/',
      name: '首页  会员登录',
      component: () => import('../views/DLUer/UserAdd.vue'),
    },

    {
      path: '/UptUse',
      name: '会员修改',
      component: () => import('../views/DLUer/UserUpt.vue'),
    },

    {
      path: '/DL',
      name: '登录',
      component: () => import('../views/DLUer/DL.vue'),
    },

    {
      path: '/QY',
      name: '权益展示',
      component: () => import('../views/QY/Qyshow.vue'),
    },

    {
      path: '/QyAdd',
      name: '权益添加',
      component: () => import('../views/QY/QyAdd.vue'),
    },

    {
      path: '/QyUpt',
      name: '权益修改',
      component: () => import('../views/QY/QyUpt.vue'),
    },

    {
      path: '/DJ',
      name: '等级展示',
      component: () => import('../views/DJ/DJShow.vue'),
    },

    {
      path: '/DjAdd',
      name: '等级添加',
      component: () => import('../views/DJ/DjAdd.vue'),
    },


    {
      path: '/djqy',
      name: '等级权益添加',
      component: () => import('../views/DJ/qyadd.vue'),
    }














  ],
})

export default router
